package cn.zyq.ykb.controller.h5.config;

import org.springframework.security.access.prepost.PreAuthorize;
import cn.zyq.ykb.system.ry.util.poi.ExcelUtil;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.annotation.Log;
import cn.zyq.ykb.system.ry.enums.BusinessType;
import cn.zyq.ykb.beans.config.ConfigComplaint;
import cn.zyq.ykb.service.config.ConfigComplaintService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.common.PageParam;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 配置-投诉建议Controller
 *
 * @author SystemAuth
 * @date 2023-05-24
 */

@RestController(value = "H5ConfigComplaintController")
@RequestMapping("/api/configComplaint")
@Api(tags = "配置-投诉建议接口")
public class ConfigComplaintController extends BaseController {

    @Autowired
    private ConfigComplaintService configComplaintService;

    /**
     * 新增配置-投诉建议
     */
    @ApiOperation(value = "投诉建议新增")
    @Log(title = "配置-投诉建议", businessType = BusinessType.INSERT)
    @PostMapping
    public Object add(@RequestBody ConfigComplaint configComplaint) {
        return this.configComplaintService.insertConfigComplaint(configComplaint,this.getLoginUser());
    }


}
